<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            perspective: 500px;
            /* 一般视距是500px ,视距是固定的*/
        }

        .box {
            height: 60px;
            width: 80px;
            background-color: pink;
            transform: translateZ(100px);
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>